package com.pine.common.beans.pineframework.response;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.pine.common.util.time.TimeUtil;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 用户表查询响应体
 * </p>
 *
 * @author pine manage
 * @since 2024-08-12
 */
@Data
@Schema(title = "SysUserQueryResponse", description = "用户表查询响应体")
public class SysUserQueryResponse implements Serializable {

    @Serial
    private static final long serialVersionUID = 1062730625659901610L;
    /**
     * 自增主键
     */
    @Schema(title = "id", description = "自增主键")
    private Long id;
    /**
     * 用户账号
     */
    @Schema(title = "loginAccount", description = "用户账号")
    private String loginAccount;
    /**
     * 用户名称
     */
    @Schema(title = "username", description = "用户名称")
    private String username;
    /**
     * 部门id
     */
    @Schema(title = "deptId", description = "部门id")
    private Long deptId;
    /**
     * 头像
     */
    @Schema(title = "avatar", description = "头像")
    private String avatar;
    /**
     * 性别:1=男,2=女,0=保密
     */
    @Schema(title = "gender", description = "性别:1=男,2=女,0=保密")
    private Integer gender;
    /**
     * 性别:1=男,2=女,0=保密-中文描述
     */
    @Schema(title = "gender", description = "中文描述：性别:1=男,2=女,0=保密")
    private String genderDesc;
    /**
     * 年龄
     */
    @Schema(title = "age", description = "年龄")
    private Integer age;
    /**
     * 出生日期-时间格式（yyyy-MM-dd HH:mm:ss）
     */
    @JsonFormat(pattern = TimeUtil.DEFAULT_DATE_TIME_PATTERN, timezone = TimeUtil.GMT_8)
    @Schema(title = "birthday", description = "出生日期-时间格式（yyyy-MM-dd HH:mm:ss）")
    private LocalDateTime birthday;
    /**
     * 电话
     */
    @Schema(title = "phone", description = "电话")
    private String phone;
    /**
     * 邮箱
     */
    @Schema(title = "email", description = "邮箱")
    private String email;
    /**
     * 状态:1=启用,0=禁用
     */
    @Schema(title = "status", description = "状态:1=启用,0=禁用")
    private Integer status;
    /**
     * 备注
     */
    @Schema(title = "remark", description = "备注")
    private String remark;
    /**
     * 创建人id
     */
    @Schema(title = "createUserId", description = "创建人id")
    private Long createUserId;
    /**
     * 创建时间-时间格式（yyyy-MM-dd HH:mm:ss）
     */
    @JsonFormat(pattern = TimeUtil.DEFAULT_DATE_TIME_PATTERN, timezone = TimeUtil.GMT_8)
    @Schema(title = "createTime", description = "创建时间-时间格式（yyyy-MM-dd HH:mm:ss）")
    private LocalDateTime createTime;
    /**
     * 更新人id
     */
    @Schema(title = "updateUserId", description = "更新人id")
    private Long updateUserId;
    /**
     * 更新时间-时间格式（yyyy-MM-dd HH:mm:ss）
     */
    @JsonFormat(pattern = TimeUtil.DEFAULT_DATE_TIME_PATTERN, timezone = TimeUtil.GMT_8)
    @Schema(title = "updateTime", description = "更新时间-时间格式（yyyy-MM-dd HH:mm:ss）")
    private LocalDateTime updateTime;
}
